<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://doc.hyperf.io
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
 */

return [
    'default' => [
        'adapter' => env('DB_DRIVER', 'mysql'),
        'host' => env('DB_HOST', 'docker.for.mac.localhost'),
        'dbname' => env('DB_DATABASE', 'globicephala'),
        'port' => (int)env('DB_PORT', 3306),
        'username' => env('DB_USERNAME', 'root'),
        'password' => env('DB_PASSWORD', '123456'),
        'charset' => env('DB_CHARSET', 'utf8'),
        'collation' => env('DB_COLLATION', 'utf8_unicode_ci'),
        'prefix' => env('DB_PREFIX', ''),
//        'options'=> [PDO::ATTR_PERSISTENT=>false,    PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => 1,],
        'pool' => env('DB_POOL', 256),
    ],
];
